package top.kaoshanji.p1ch01a;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * 代码清单-p1ch01a-15页a：编写简单的REST服务
 * @author kaoshanji
 * ^_^
 * create time 2025/5/27 17:42
 */
@RestController
public class HiController {

    @GetMapping("/hi")
    public String hi() {
        return "Hi，当前时间：" + LocalDateTime.now();
    }

}
